home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
etc
/
brc.z
/
brc
Wrap
Text File
|
1992-04-03
|
584b
|
26 lines
#! /bin/sh
#Tag 0x00000f00
#ident "$Revision: 1.18 $"
#
# This script is responsible for initializing the mounted filesystem table
# kept in /etc/mtab. It also creates /etc/fstab if none exists.
#
if [ "`/etc/nvram diskless 2> /dev/null`" -eq 1 ] ; then
> /etc/mtab
/etc/mount -f /
if [ -d /share ]; then
/etc/mount -f /share
fi
if [ -d /swap ]; then
/etc/mount -f /swap
fi
else
rootdev=/dev/root
usrdev=/dev/usr
if [ ! -f /etc/fstab ] ; then
echo "$rootdev /\n$usrdev /usr" | setmnt -f /etc/fstab
fi
echo "$rootdev /" | setmnt
fi